Package com.cisco.pt.ipc.sim.pdu.impl
Class IdPayloadImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCDataImpl
com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
com.cisco.pt.ipc.sim.pdu.impl.PduImpl
com.cisco.pt.ipc.sim.pdu.impl.IkePayloadImpl
com.cisco.pt.ipc.sim.pdu.impl.IdPayloadImpl
- All Implemented Interfaces:
IPCData,IdPayload,IkePayload,Pdu,Signal
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected IPAddressprotected intprotected IPAddressprotected Stringprotected IPAddressprotected intprotected intprotected IPAddressFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.IkePayloadImpl
length, nextPayloadType, reservedFields inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
fieldNames, fieldTable, signalType, typeTable -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidencodeTypeAndPayload(EncodedBuffer buffer) intgetFieldType(String fieldName) intintvoidpduRead(EncodedBuffer buffer) voidread(EncodedBuffer buffer) Reads this object from an EncodedBuffer of raw datavoidsetDstIpAddress(IPAddress dstIpAddress) voidsetDstPortNumber(int dstPortNumber) voidsetDstSubnetMask(IPAddress dstSubnetMask) voidvoidsetIpAddress(IPAddress ipAddress) voidsetProtocol(int protocol) voidsetSrcPortNumber(int srcPortNumber) voidsetSrcSubnetMask(IPAddress srcSubnetMask) Methods inherited from class com.cisco.pt.ipc.sim.pdu.impl.IkePayloadImpl
getLength, getNextPayloadType, getReserved, setLength, setNextPayloadType, setReservedMethods inherited from class com.cisco.pt.ipc.sim.pdu.impl.SignalImpl
getFieldValueMethods inherited from class com.cisco.pt.ipc.impl.IPCDataImpl
checkType, pduReadBoolean, pduReadByte, pduReadDouble, pduReadFloat, pduReadInt, pduReadIPAddress, pduReadIPCData, pduReadIPV6Address, pduReadLong, pduReadMACAddress, pduReadPair, pduReadQString, pduReadShort, pduReadString, pduReadUUID, pduReadVector, readBoolean, readByte, readDouble, readFloat, readInt, readIPAddress, readIPCData, readIPV6Address, readLong, readMACAddress, readPair, readQString, readShort, readString, readUUID, readVectorMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.sim.pdu.IkePayload
getLength, getNextPayloadType, getReserved, setLength, setNextPayloadType, setReservedMethods inherited from interface com.cisco.pt.ipc.sim.pdu.Signal
getFieldValue
-
Field Details
-
ipAddress
-
dstIpAddress
-
srcSubnetMask
-
dstSubnetMask
-
srcPortNumber
protected int srcPortNumber -
dstPortNumber
protected int dstPortNumber -
protocol
protected int protocol -
idData
-
-
Constructor Details
-
IdPayloadImpl
public IdPayloadImpl()
-
-
Method Details
-
getIpAddress
- Specified by:
getIpAddressin interfaceIdPayload- Returns:
- IPAddress Returns a IPAddress
-
setIpAddress
- Specified by:
setIpAddressin interfaceIdPayload- Parameters:
ipAddress- Takes in a parameter of ipAddress
-
getDstIpAddress
- Specified by:
getDstIpAddressin interfaceIdPayload- Returns:
- IPAddress Returns a IPAddress
-
setDstIpAddress
- Specified by:
setDstIpAddressin interfaceIdPayload- Parameters:
dstIpAddress- Takes in a parameter of dstIpAddress
-
getSrcSubnetMask
- Specified by:
getSrcSubnetMaskin interfaceIdPayload- Returns:
- IPAddress Returns a IPAddress
-
setSrcSubnetMask
- Specified by:
setSrcSubnetMaskin interfaceIdPayload- Parameters:
srcSubnetMask- Takes in a parameter of srcSubnetMask
-
getDstSubnetMask
- Specified by:
getDstSubnetMaskin interfaceIdPayload- Returns:
- IPAddress Returns a IPAddress
-
setDstSubnetMask
- Specified by:
setDstSubnetMaskin interfaceIdPayload- Parameters:
dstSubnetMask- Takes in a parameter of dstSubnetMask
-
getSrcPortNumber
public int getSrcPortNumber()- Specified by:
getSrcPortNumberin interfaceIdPayload- Returns:
- int Returns a int
-
setSrcPortNumber
public void setSrcPortNumber(int srcPortNumber) - Specified by:
setSrcPortNumberin interfaceIdPayload- Parameters:
srcPortNumber- Takes in a parameter of srcPortNumber
-
getDstPortNumber
public int getDstPortNumber()- Specified by:
getDstPortNumberin interfaceIdPayload- Returns:
- int Returns a int
-
setDstPortNumber
public void setDstPortNumber(int dstPortNumber) - Specified by:
setDstPortNumberin interfaceIdPayload- Parameters:
dstPortNumber- Takes in a parameter of dstPortNumber
-
getProtocol
public int getProtocol()- Specified by:
getProtocolin interfaceIdPayload- Returns:
- int Returns a int
-
setProtocol
public void setProtocol(int protocol) - Specified by:
setProtocolin interfaceIdPayload- Parameters:
protocol- Takes in a parameter of protocol
-
getIdData
-
setIdData
-
getFieldType
- Overrides:
getFieldTypein classIkePayloadImpl
-
read
Reads this object from an EncodedBuffer of raw data- Specified by:
readin interfaceIPCData- Overrides:
readin classIkePayloadImpl- Parameters:
buffer- The EncodedBuffer that contains the raw data from which to construct this object
-
pduRead
- Specified by:
pduReadin interfaceSignal- Overrides:
pduReadin classIkePayloadImpl
-
getOrderedFieldNames
- Specified by:
getOrderedFieldNamesin interfaceSignal- Overrides:
getOrderedFieldNamesin classIkePayloadImpl
-
encodeTypeAndPayload
- Specified by:
encodeTypeAndPayloadin interfaceSignal- Overrides:
encodeTypeAndPayloadin classIkePayloadImpl
-